import 'package:flutter/material.dart';

class ZSHomeAppBar extends AppBar {
  ZSHomeAppBar(BuildContext context)
      : super(
            title: Text('美食广场'),
            leading: IconButton(
                icon: Icon(Icons.menu),
                onPressed: () {
                  Scaffold.of(context).openDrawer();
                })

            // Builder(builder: (ctx) {
            //   return IconButton(
            //       icon: Icon(Icons.menu),
            //       onPressed: () {
            //         Scaffold.of(ctx).openDrawer();
            //       });
            // }),
            );
}
